package com.nanrui.mutualinductor.data;


import java.util.ArrayList;

public class DKPowerData {
    public static final short[] CONNECTION_MODE_NUMBER;
    public static final String[] CONNECTION_MODE_STRING;
    public static final short CONNECTION_MODE_THREE_PHASE_FOUR_WIRE = 0;
    public static final short CONNECTION_MODE_THREE_PHASE_THREE_WIRE = 1;
    public static final float[] CT_1ND_CURRENT_FOR1_NUMBER;
    public static final String[] CT_1ND_CURRENT_FOR1_STRING;
    public static final float CT_1ND_CURRENT_FOR5_100 = 100.0F;
    public static final float CT_1ND_CURRENT_FOR5_500 = 500.0F;
    public static final float[] CT_1ND_CURRENT_FOR5_NUMBER;
    public static final String[] CT_1ND_CURRENT_FOR5_STRING;
    public static final float CT_2ND_CURRENT_1 = 1.0F;
    public static final float CT_2ND_CURRENT_5 = 5.0F;
    public static final float[] CT_2ND_CURRENT_NUMBER;
    public static final String[] CT_2ND_CURRENT_STRING;
    public static final short[] CT_GRADES_NUMBER;
    public static final String[] CT_GRADES_STRING;
    public static final short CT_GRADE_0_2 = 1;
    public static final short ELECTRIC_ENERGY_ACTIVE_INPUT = 1;
    public static final short ELECTRIC_ENERGY_REACTIVE_INPUT = 2;
    public static final short[] ELECTRIC_ENERGY_TYPES_NUMBER;
    public static final String[] ELECTRIC_ENERGY_TYPES_STRING;
    public static final int GRADE_MODE_AUTO = 0;
    public static final int GRADE_MODE_MANUAL = 1;
    public static final int[] GRADE_MODE_NUMBER;
    public static final String[] GRADE_MODE_STRING;
    public static final float[] GUEST_VOLTAGE_NUMBER;
    public static final String[] GUEST_VOLTAGE_STRING;
    public static final float[] HOST_VOLTAGE_NUMBER;
    public static final String[] HOST_VOLTAGE_STRING;
    //    private static final Logger LOG = LoggerFactory.getLogger(DKPowerData.class);
    public static final float[] METER_P_GRADES_NUMBER = {0.2F, 0.5F, 1.0F, 2.0F};
    public static final String[] METER_P_GRADES_STRING = {"0.2级", "0.5级", "1级", "2级"};
    public static final float METER_P_GRADE_1 = 1.0F;
    public static final float[] METER_Q_GRADES_NUMBER = {0.2F, 0.5F, 1.0F, 2.0F};
    public static final String[] METER_Q_GRADES_STRING = {"0.2级", "0.5级", "1级", "2级"};
    public static final float METER_Q_GRADE_1 = 1.0F;
    public static final float PT_1ND_VOLTAGE_6000 = 6.0F;
    public static final float[] PT_1ND_VOLTAGE_NUMBER;
    public static final float PT_1ND_VOLTAGE_RADICAL_6000 = 6.0F;
    public static final float[] PT_1ND_VOLTAGE_RADICAL_NUMBER;
    public static final String[] PT_1ND_VOLTAGE_RADICAL_STRING;
    public static final String[] PT_1ND_VOLTAGE_STRING;
    public static final float PT_2ND_VOLTAGE_100 = 100.0F;
    public static final float[] PT_2ND_VOLTAGE_NUMBER;
    public static final float PT_2ND_VOLTAGE_RADICAL_100;
    public static final String[] PT_2ND_VOLTAGE_STRING;
    public static final String[] PT_2ND_VOLTAGE_STRING_TWO;
    public static final short[] PT_GRADES_NUMBER;
    public static final String[] PT_GRADES_STRING;
    public static final short PT_GRADE_0_2 = 1;
    public static final short SYNC_METHOD_ELECTRIC_CABLE = 0;
    public static final short SYNC_METHOD_OPTICAL_CABLE = 2;
    public static final short SYNC_METHOD_WIRELESS = 1;
    public static final int[] VERIFY_ITEMS_NUMBER;
    public static final String[] VERIFY_ITEMS_STRING;
    public static final int VERIFY_ITEM_ACTIVE_ENERGY = 1;
    public static final int VERIFY_ITEM_ACTIVE_REACTIVE_ENERGY = 3;
    public static final int VERIFY_ITEM_REACTIVE_ENERGY = 2;
    public static final float VOLTAGE_100 = 100.0F;
    public static final float VOLTAGE_220 = 220.0F;
    public static final float VOLTAGE_380 = 380.0F;
    public static final float VOLTAGE_57_7 = 57.7F;
    public static final short[] WIRE_TYPE_NUMBER;
    public static final String[] WIRE_TYPE_STRING;
    private static DeviceCapability[] allCapabilities = {new DeviceCapability((short) 1, (short) 2, "直接输入"), new DeviceCapability((short) 2, (short) 2, "小钳表"), new DeviceCapability((short) 3, (short) 64, "大钳表")};
    public static DeviceCapability[] supportedCapabilities;

    static {
        allCapabilities[0].setVoltageGear(new Gear(new float[]{380.0F, 220.0F, 100.0F, 57.7F}, "V", (short) 0, 2));
        allCapabilities[0].setCurrentGear(new Gear(new float[]{20.0F, 5.0F, 1.0F, 0.2F}, "A", (short) 1, 1));
        allCapabilities[1].setVoltageGear(new Gear(new float[]{380.0F, 220.0F, 100.0F, 57.7F}, "V", (short) 0, 2));
        allCapabilities[1].setCurrentGear(new Gear(new float[]{20.0F, 5.0F, 1.0F, 0.2F}, "A", (short) 1, 1));
        allCapabilities[2].setVoltageGear(new Gear(new float[]{380.0F, 220.0F, 100.0F, 57.7F}, "V", (short) 0, 2));
        allCapabilities[2].setCurrentGear(new Gear(new float[]{1500.0F, 1000.0F, 500.0F, 100.0F}, "A", (short) 3, 3));
        HOST_VOLTAGE_NUMBER = new float[]{380.0F, 220.0F, 100.0F, 57.7F};
        HOST_VOLTAGE_STRING = new String[]{"380V", "220V", "100V", "57.7V"};
        GUEST_VOLTAGE_NUMBER = new float[]{100.0F, 57.7F};
        GUEST_VOLTAGE_STRING = new String[]{"100V", "57.7V"};
        VERIFY_ITEMS_NUMBER = new int[]{1, 2, 3};
        VERIFY_ITEMS_STRING = new String[]{"有功电能", "无功电能", "有/无功电能"};
        ELECTRIC_ENERGY_TYPES_NUMBER = new short[]{1, 2};
        ELECTRIC_ENERGY_TYPES_STRING = new String[]{"有功误差", "无功误差"};
        GRADE_MODE_NUMBER = new int[]{0, 1};
        GRADE_MODE_STRING = new String[]{"自动档位", "手动档位"};
        CONNECTION_MODE_NUMBER = new short[]{1, 0};
        CONNECTION_MODE_STRING = new String[]{"三相三线", "三相四线"};
        WIRE_TYPE_NUMBER = new short[]{0, 1, 2};
        WIRE_TYPE_STRING = new String[]{"电缆", "无线", "光缆"};
        CT_2ND_CURRENT_NUMBER = new float[]{1.0F, 5.0F};
        CT_2ND_CURRENT_STRING = new String[]{"1A", "5A"};
        CT_1ND_CURRENT_FOR5_NUMBER = new float[]{5.0F, 7.5F, 10.0F, 15.0F, 20.0F, 25.0F, 30.0F, 40.0F, 50.0F, 60.0F, 75.0F, 100.0F, 150.0F, 200.0F, 250.0F, 300.0F, 400.0F, 500.0F, 600.0F, 750.0F, 800.0F, 1000.0F, 1200.0F, 1250.0F, 1500.0F, 2000.0F, 2500.0F, 3000.0F, 4000.0F, 5000.0F, 6000.0F, 7500.0F, 10000.0F, 12500.0F, 15000.0F, 20000.0F, 25000.0F};
        CT_1ND_CURRENT_FOR5_STRING = new String[]{"5A", "7.5A", "10A", "15A", "20A", "25A", "30A", "40A", "50A", "60A", "75A", "100A", "150A", "200A", "250A", "300A", "400A", "500A", "600A", "750A", "800A", "1000A", "1200A", "1250A", "1500A", "2000A", "2500A", "3000A", "4000A", "5000A", "6000A", "7500A", "10000A", "12500A", "15000A", "20000A", "25000A"};
        CT_1ND_CURRENT_FOR1_NUMBER = new float[]{25.0F, 30.0F, 40.0F, 50.0F, 60.0F, 75.0F, 100.0F, 150.0F, 200.0F, 250.0F, 300.0F, 400.0F, 500.0F, 600.0F, 750.0F, 800.0F, 1000.0F, 1200.0F, 1250.0F, 1500.0F, 2000.0F, 2500.0F, 3000.0F, 4000.0F, 5000.0F};
        CT_1ND_CURRENT_FOR1_STRING = new String[]{"25A", "30A", "40A", "50A", "60A", "75A", "100A", "150A", "200A", "250A", "300A", "400A", "500A", "600A", "750A", "800A", "1000A", "1200A", "1250A", "1500A", "2000A", "2500A", "3000A", "4000A", "5000A"};
        CT_GRADES_NUMBER = new short[]{0, 1, 2, 3, 4};
        CT_GRADES_STRING = new String[]{"0.5级", "0.2级", "0.1级", "0.5S级", "0.2S级"};
        PT_2ND_VOLTAGE_RADICAL_100 = (float) (100.0D / Math.sqrt(3.0D));
        PT_2ND_VOLTAGE_NUMBER = new float[]{100.0F, PT_2ND_VOLTAGE_RADICAL_100};
        PT_2ND_VOLTAGE_STRING = new String[]{"100V", "100V/√(3)"};
        PT_2ND_VOLTAGE_STRING_TWO = new String[]{"100", "100V/√(3)"};
        PT_1ND_VOLTAGE_NUMBER = new float[]{6.0F, 10.0F, 20.0F, 35.0F};
        PT_1ND_VOLTAGE_STRING = new String[]{"6kV", "10kV", "20kV", "35kV"};
        PT_1ND_VOLTAGE_RADICAL_NUMBER = new float[]{6.0F, 10.0F, 20.0F, 35.0F, 66.0F, 110.0F, 220.0F, 500.0F};
        PT_1ND_VOLTAGE_RADICAL_STRING = new String[]{"6kV/√(3)", "10kV/√(3)", "20kV/√(3)", "35kV/√(3)", "66kV/√(3)", "110kV/√(3)", "220kV/√(3)", "500kV/√(3)"};
        PT_GRADES_NUMBER = new short[]{0, 1, 2};
        PT_GRADES_STRING = new String[]{"0.5级", "0.2级", "0.1级"};
    }

    public static void loadSupportedCapabilities(short paramShort) {
        ArrayList localArrayList = new ArrayList(allCapabilities.length);
        for (DeviceCapability localDeviceCapability : allCapabilities) {
            if ((localDeviceCapability.getCapabilityIndex() & paramShort) == localDeviceCapability.getCapabilityIndex()) {
                localArrayList.add(localDeviceCapability);
            }
        }
        supportedCapabilities = new DeviceCapability[localArrayList.size()];
        localArrayList.toArray(supportedCapabilities);
    }

    public static class CT1ndCurrentFor1 {
        public static float getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.CT_1ND_CURRENT_FOR1_STRING.length) {
                    break;
                }
                if (DKPowerData.CT_1ND_CURRENT_FOR1_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.CT_1ND_CURRENT_FOR1_NUMBER[k];
        }

        public static String getStringByNumber(float paramFloat) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.CT_1ND_CURRENT_FOR1_NUMBER.length) {
                    break;
                }
                if (DKPowerData.CT_1ND_CURRENT_FOR1_NUMBER[j] == paramFloat) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.CT_1ND_CURRENT_FOR1_STRING[k];
        }
    }

    public static class CT1ndCurrentFor5 {
        public static float getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.CT_1ND_CURRENT_FOR5_STRING.length) {
                    break;
                }
                if (DKPowerData.CT_1ND_CURRENT_FOR5_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.CT_1ND_CURRENT_FOR5_NUMBER[k];
        }

        public static String getStringByNumber(float paramFloat) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.CT_1ND_CURRENT_FOR5_NUMBER.length) {
                    break;
                }
                if (DKPowerData.CT_1ND_CURRENT_FOR5_NUMBER[j] == paramFloat) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.CT_1ND_CURRENT_FOR5_NUMBER[k] + "";
        }
    }

    public static class CT2ndCurrent {
        public static float getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.CT_2ND_CURRENT_STRING.length) {
                    break;
                }
                if (DKPowerData.CT_2ND_CURRENT_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.CT_2ND_CURRENT_NUMBER[k];
        }

        public static String getStringByNumber(float paramFloat) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.CT_2ND_CURRENT_NUMBER.length) {
                    break;
                }
                if (DKPowerData.CT_2ND_CURRENT_NUMBER[j] == paramFloat) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.CT_2ND_CURRENT_NUMBER[k] + "";
        }
    }

    public static class CTGrade {
        public static short getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.CT_GRADES_STRING.length) {
                    break;
                }
                if (DKPowerData.CT_GRADES_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.CT_GRADES_NUMBER[k];
        }

        public static String getStringByNumber(short paramShort) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.CT_GRADES_NUMBER.length) {
                    break;
                }
                if (DKPowerData.CT_GRADES_NUMBER[j] == paramShort) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.CT_GRADES_STRING[k];
        }
    }

    public static class ConnectionMode {
        public static short getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.CONNECTION_MODE_STRING.length) {
                    break;
                }
                if (DKPowerData.CONNECTION_MODE_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.CONNECTION_MODE_NUMBER[k];
        }

        public static String getStringByNumber(short paramShort) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.CONNECTION_MODE_NUMBER.length) {
                    break;
                }
                if (DKPowerData.CONNECTION_MODE_NUMBER[j] == paramShort) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.CONNECTION_MODE_STRING[k];
        }
    }

    public static class DeviceCapabilities {
        public static short getDefault() {
            return DKPowerData.supportedCapabilities[1].getId();
        }

        public static String[] getNameArray() {
            String[] arrayOfString = new String[DKPowerData.supportedCapabilities.length];
            for (int i = 0; i < DKPowerData.supportedCapabilities.length; i++) {
                arrayOfString[i] = DKPowerData.supportedCapabilities[i].getCapabilityName();
            }
            return arrayOfString;
        }

        public static short[] getNumberArray() {
            short[] arrayOfShort = new short[DKPowerData.supportedCapabilities.length];
            for (int i = 0; i < DKPowerData.supportedCapabilities.length; i++) {
                arrayOfShort[i] = DKPowerData.supportedCapabilities[i].getId();
            }
            return arrayOfShort;
        }

        public static short getNumberByString(CharSequence paramCharSequence) {
            for (DeviceCapability localDeviceCapability : DKPowerData.supportedCapabilities) {
                if (localDeviceCapability.getCapabilityName().equals(paramCharSequence)) {
                    return localDeviceCapability.getId();
                }
            }

            return 0;
        }

        public static String getStringByNumber(short paramShort) {
            for (DeviceCapability localDeviceCapability : DKPowerData.supportedCapabilities) {
                if (localDeviceCapability.getId() == paramShort) {
                    return localDeviceCapability.getCapabilityName();
                }
            }

            return "";
        }

        public static DeviceCapability loadCapability(int paramInt) {
            for (DeviceCapability localDeviceCapability : DKPowerData.supportedCapabilities) {
                if (localDeviceCapability.getId() == paramInt) {
                    return localDeviceCapability;
                }
            }
            return null;
        }
    }

    public static class ElectricEnergyTypes {
        public static short getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.ELECTRIC_ENERGY_TYPES_STRING.length) {
                    break;
                }
                if (DKPowerData.ELECTRIC_ENERGY_TYPES_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.ELECTRIC_ENERGY_TYPES_NUMBER[k];
        }

        public static String getStringByNumber(short paramShort) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.ELECTRIC_ENERGY_TYPES_NUMBER.length) {
                    break;
                }
                if (DKPowerData.ELECTRIC_ENERGY_TYPES_NUMBER[j] == paramShort) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.ELECTRIC_ENERGY_TYPES_STRING[k];
        }
    }

    public static class GradeMode {
        public static int getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.GRADE_MODE_STRING.length) {
                    break;
                }
                if (DKPowerData.GRADE_MODE_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.GRADE_MODE_NUMBER[k];
        }

        public static String getStringByNumber(int paramInt) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.GRADE_MODE_NUMBER.length) {
                    break;
                }
                if (DKPowerData.GRADE_MODE_NUMBER[j] == paramInt) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.GRADE_MODE_STRING[k];
        }
    }

    public static class GuestVoltage {
        public static short getIndexByNumber(float paramFloat) {
            int i = 0;
            for (int j = i; j < DKPowerData.GUEST_VOLTAGE_NUMBER.length; j = i) {
                if (DKPowerData.GUEST_VOLTAGE_NUMBER[j] == paramFloat) {
                    return (short) j;
                }
                i = (short) (j + 1);
            }
            return 0;
        }

        public static short getIndexByString(String paramString) {
            int i = 0;
            for (int j = i; j < DKPowerData.GUEST_VOLTAGE_STRING.length; j = i) {
                if (DKPowerData.GUEST_VOLTAGE_STRING[j].equals(paramString)) {
                    return (short) j;
                }
                i = (short) (j + 1);
            }
            return 0;
        }

        public static float getNumberByIndex(short paramShort) {
            return DKPowerData.GUEST_VOLTAGE_NUMBER[paramShort];
        }

        public static float getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.GUEST_VOLTAGE_STRING.length) {
                    break;
                }
                if (DKPowerData.GUEST_VOLTAGE_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.GUEST_VOLTAGE_NUMBER[k];
        }

        public static String getStringByIndex(short paramShort) {
            return DKPowerData.GUEST_VOLTAGE_STRING[paramShort];
        }

        public static String getStringByNumber(float paramFloat) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.GUEST_VOLTAGE_NUMBER.length) {
                    break;
                }
                if (DKPowerData.GUEST_VOLTAGE_NUMBER[j] == paramFloat) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.GUEST_VOLTAGE_STRING[k];
        }
    }

    public static class HostVoltage {
        public static short getIndexByNumber(float paramFloat) {
            int i = 0;
            for (int j = i; j < DKPowerData.HOST_VOLTAGE_NUMBER.length; j = i) {
                if (DKPowerData.HOST_VOLTAGE_NUMBER[j] == paramFloat) {
                    return (short) j;
                }
                i = (short) (j + 1);
            }
            return 0;
        }

        public static short getIndexByString(String paramString) {
            int i = 0;
            for (int j = i; j < DKPowerData.HOST_VOLTAGE_STRING.length; j = i) {
                if (DKPowerData.HOST_VOLTAGE_STRING[j].equals(paramString)) {
                    return (short) j;
                }
                i = (short) (j + 1);
            }
            return 0;
        }

        public static float getNumberByIndex(short paramShort) {
            return DKPowerData.HOST_VOLTAGE_NUMBER[paramShort];
        }

        public static float getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.HOST_VOLTAGE_STRING.length) {
                    break;
                }
                if (DKPowerData.HOST_VOLTAGE_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.HOST_VOLTAGE_NUMBER[k];
        }

        public static String getStringByIndex(short paramShort) {
            return DKPowerData.HOST_VOLTAGE_STRING[paramShort];
        }

        public static String getStringByNumber(float paramFloat) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.HOST_VOLTAGE_NUMBER.length) {
                    break;
                }
                if (DKPowerData.HOST_VOLTAGE_NUMBER[j] == paramFloat) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.HOST_VOLTAGE_STRING[k];
        }
    }

    public static class MeterPGrade {
        public static float getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.METER_P_GRADES_STRING.length) {
                    break;
                }
                if (DKPowerData.METER_P_GRADES_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.METER_P_GRADES_NUMBER[k];
        }

        public static String getStringByNumber(float paramFloat) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.METER_P_GRADES_NUMBER.length) {
                    break;
                }
                if (DKPowerData.METER_P_GRADES_NUMBER[j] == paramFloat) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.METER_P_GRADES_STRING[k];
        }
    }

    public static class MeterQGrade {
        public static float getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.METER_Q_GRADES_STRING.length) {
                    break;
                }
                if (DKPowerData.METER_Q_GRADES_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.METER_Q_GRADES_NUMBER[k];
        }

        public static String getStringByNumber(float paramFloat) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.METER_Q_GRADES_NUMBER.length) {
                    break;
                }
                if (DKPowerData.METER_Q_GRADES_NUMBER[j] == paramFloat) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.METER_Q_GRADES_STRING[k];
        }
    }

    public static class PT1ndVoltage {
        public static float getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.PT_1ND_VOLTAGE_STRING.length) {
                    break;
                }
                if (DKPowerData.PT_1ND_VOLTAGE_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.PT_1ND_VOLTAGE_NUMBER[k];
        }

        public static String getStringByNumber(float paramFloat) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.PT_1ND_VOLTAGE_NUMBER.length) {
                    break;
                }
                if (DKPowerData.PT_1ND_VOLTAGE_NUMBER[j] == paramFloat) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.PT_1ND_VOLTAGE_NUMBER[k] + "";
        }
    }

    public static class PT1ndVoltageRadical {
        public static float getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.PT_1ND_VOLTAGE_RADICAL_STRING.length) {
                    break;
                }
                if (DKPowerData.PT_1ND_VOLTAGE_RADICAL_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.PT_1ND_VOLTAGE_RADICAL_NUMBER[k];
        }

        public static String getStringByNumber(float paramFloat) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.PT_1ND_VOLTAGE_RADICAL_NUMBER.length) {
                    break;
                }
                if (DKPowerData.PT_1ND_VOLTAGE_RADICAL_NUMBER[j] == paramFloat) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.PT_1ND_VOLTAGE_RADICAL_NUMBER[k] + "";
        }
    }

    public static class PT2ndVoltage {
        public static float getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.PT_2ND_VOLTAGE_STRING.length) {
                    break;
                }
                if (DKPowerData.PT_2ND_VOLTAGE_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.PT_2ND_VOLTAGE_NUMBER[k];
        }

        public static String getStringByNumber(float paramFloat) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.PT_2ND_VOLTAGE_NUMBER.length) {
                    break;
                }
                if (DKPowerData.PT_2ND_VOLTAGE_NUMBER[j] == paramFloat) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.PT_2ND_VOLTAGE_STRING_TWO[k];
        }
    }

    public static class PTGrade {
        public static short getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.PT_GRADES_STRING.length) {
                    break;
                }
                if (DKPowerData.PT_GRADES_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.PT_GRADES_NUMBER[k];
        }

        public static String getStringByNumber(short paramShort) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.PT_GRADES_NUMBER.length) {
                    break;
                }
                if (DKPowerData.PT_GRADES_NUMBER[j] == paramShort) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.PT_GRADES_STRING[k];
        }
    }

    public static class SyncMethod {
        public static short getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.WIRE_TYPE_STRING.length) {
                    break;
                }
                if (DKPowerData.WIRE_TYPE_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.WIRE_TYPE_NUMBER[k];
        }

        public static String getStringByNumber(short paramShort) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.WIRE_TYPE_NUMBER.length) {
                    break;
                }
                if (DKPowerData.WIRE_TYPE_NUMBER[j] == paramShort) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.WIRE_TYPE_STRING[k];
        }
    }

    public static class VerifyItems {
        public static int getNumberByString(String paramString) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.VERIFY_ITEMS_STRING.length) {
                    break;
                }
                if (DKPowerData.VERIFY_ITEMS_STRING[j].equals(paramString)) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.VERIFY_ITEMS_NUMBER[k];
        }

        public static String getStringByNumber(int paramInt) {
            int i = -1;
            int k;
            for (int j = 0; ; j++) {
                k = i;
                if (j >= DKPowerData.VERIFY_ITEMS_NUMBER.length) {
                    break;
                }
                if (DKPowerData.VERIFY_ITEMS_NUMBER[j] == paramInt) {
                    k = j;
                    break;
                }
            }
            return DKPowerData.VERIFY_ITEMS_STRING[k];
        }
    }
}

